Other Type Definitions
The following type definitions are available globally.
- 
                  
                  
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias MGLMapSnapshotCompletionHandler = (MGLMapSnapshot?, Error?) -> VoidParameters
snapshotThe
MGLMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful. 
- 
                  
                  
A key in the
userInfoproperty of a notification posted byMGLOfflinePack.Declaration
Objective-C
typedef NSString *MGLOfflinePackUserInfoKeySwift
struct MGLOfflinePackUserInfoKey : RawRepresentable, _SwiftNewtypeWrapper, Equatable, Hashable, _ObjectiveCBridgeable - 
                  
                  
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^MGLOfflinePackAdditionCompletionHandler)( MGLOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias MGLOfflinePackAdditionCompletionHandler = (MGLOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
 - 
                  
                  
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^MGLOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias MGLOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
 
- 
                  
                  
Options for
MGLShapeSourceobjects.Declaration
Objective-C
typedef NSString *MGLShapeSourceOptionSwift
struct MGLShapeSourceOption : RawRepresentable, _SwiftNewtypeWrapper, Equatable, Hashable, _ObjectiveCBridgeable 
- 
                  
                  
Options for
MGLStyleFunctionobjects.Declaration
Objective-C
typedef NSString *MGLStyleFunctionOptionSwift
struct MGLStyleFunctionOption : RawRepresentable, _SwiftNewtypeWrapper, Equatable, Hashable, _ObjectiveCBridgeable 
- 
                  
                  
Options for
MGLTileSourceobjects.Declaration
Objective-C
typedef NSString *MGLTileSourceOptionSwift
struct MGLTileSourceOption : RawRepresentable, _SwiftNewtypeWrapper, Equatable, Hashable, _ObjectiveCBridgeable 
              Install in Dash
            
        Other Type Definitions  Reference